-- GENERATED SPELL FOR [Talonshrike] --


function spell0_24518(pUnit, Event) --@Eye Peck,n/a--
pUnit:FullCastSpellOnTarget(49865,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24518', 5349, 1)
end

function spell1_24518(pUnit, Event) --@Talon Strike,n/a--
pUnit:FullCastSpellOnTarget(32909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24518', 667, 1)
end

function Sorts_24518(pUnit, Event)
local choix_sorts_24518 = math.random(0, 1)
if choix_sorts_24518 == 0 then
pUnit:RegisterEvent('spell0_24518', 1, 1)
end
if choix_sorts_24518 == 1 then
pUnit:RegisterEvent('spell1_24518', 1, 1)
end
end

function mob24518_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24518', math.random(1500, 3000), 1)
end

function mob24518_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24518_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24518_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24518, 1, 'mob24518_Action')
RegisterUnitEvent(24518, 2, 'mob24518_Leave')
RegisterUnitEvent(24518, 3, 'mob24518_Kill')
RegisterUnitEvent(24518, 4, 'mob24518_Die')
